from tencentMap.models import *
from app.models import *

def updateWarehouseStock():
    data=Warehouse.objects.all()
    # 转化成字典
    dataInfo=data.__dict__
    print(dataInfo)
    # dataInfo=
    # WarehouseStock.objects.update_or_create(**dataInfo)


    # 获取所有仓库的代码
    # titles = list(WarehouseStock.objects.values_list('id',flat = True))




#
# def updateShelfUsage():
#
# def updateMaterialInventory():
#
# def updateClassifiedMaterialInventory():
#
# def updateWInOutWarehouse():

updateWarehouseStock()